package com.poet.df.dbinfo.pojo;

import java.io.Serializable;
/**
 * 代表数据库表中的列
 * @author xuchenglong
 *
 */
public class Column implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 列明
	 */
	protected String columnName;
	/**
	 * 数据类型 ，和<code>java.sql.Types</code>中对应
	 */
	protected int dataType;
	/**
	 * 列的数据类型名称，比如int，varchar,char
	 */
	protected String typeName;
	/**
	 * 列长
	 */
	protected int columnSize;
	/**
	 * 数据精度
	 */
	protected int decimalDigits;
	/**
	 * 是否可为null
	 */
	protected boolean isNullable;
	/**
	 * 注释
	 */
	protected String remarks;
	/**
	 * 是否自增
	 */
	protected boolean isAutoIncrement;

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public int getDataType() {
		return dataType;
	}

	public void setDataType(int dataType) {
		this.dataType = dataType;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public int getColumnSize() {
		return columnSize;
	}

	public void setColumnSize(int columnSize) {
		this.columnSize = columnSize;
	}

	public int getDecimalDigits() {
		return decimalDigits;
	}

	public void setDecimalDigits(int decimalDigits) {
		this.decimalDigits = decimalDigits;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

//	public boolean isAutoIncrement() {
//		return isAutoIncrement;
//	}

	public void setAutoIncrement(boolean isAutoIncrement) {
		this.isAutoIncrement = isAutoIncrement;
	}

//	public boolean isNullable() {
//		return isNullable;
//	}

	public void setNullable(boolean isNullable) {
		this.isNullable = isNullable;
	}
	
	public boolean getIsNullable(){
		return this.isNullable;
	}
	
	public boolean getIsAutoIncrement(){
		return this.isAutoIncrement;
	}
}
